﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UploadFile.ascx.cs"
    Inherits="Thksoft.UserCotrols.UploadFile" %>
<div class="main_show_content">
    <%--    <div class="para">
        附件上传
    </div>--%>
    <table border="0" cellpadding="0" cellspacing="0" class="table">
        <tr>
            <td style="height: 30px; width: 50%; text-align: right; padding-right: 10px;">
                <asp:FileUpload ID="FileUpload" runat="server" Width="80%" Height="23px" />
            </td>
            <td style="text-align: left; padding-left: 10px;">
                <asp:Button ID="btnUpload" runat="server" CssClass="bt_css_s" onmousemove="this.className='bt_css_s'"
                    onmouseout="this.className='bt_css_s'" OnClick="btnUpload_Click" Text="上传附件"
                    CausesValidation="False" />
            </td>
        </tr>
        <tr>
            <td width="100%" colspan="3">
                <asp:DataList ID="dataList" runat="server" RepeatColumns="1" Width="100%" OnItemDataBound="dataList_ItemDataBound">
                    <ItemTemplate>
                        <table width="100%" class="table" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td style="width: 49%; height: 35px; padding-left: 20px;">
                                    <img src="../../Images/folder.png" />
                                    <asp:LinkButton ID="LkbFileName" runat="server" CausesValidation="False" Text='<%# Bind("fileName") %>'
                                        CommandArgument='<%# Bind("filePath") %>' Height="23px" Width="300px" OnClick="lnkfileName_Click"></asp:LinkButton>
                                </td>
                                <td style="height: 35px;" align="center">上传者：<asp:Label ID="lblUploadPersonName" runat="server" Text='<%# Bind("operatorId") %>'></asp:Label>
                                    时间：<asp:Label ID="lblCzTime" runat="server" Text='<%# Bind("operatorDate")%>'></asp:Label>
                                    <asp:Button ID="ButDelete" runat="server" CssClass="bt_css_s" Text="删除附件" CommandArgument='<%# Bind("fileId") %>'
                                        OnClick="ButDelete_Click" OnClientClick="javascript:return confirm('确定删除吗')" />
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Left" />
                </asp:DataList>
            </td>
        </tr>
    </table>
</div>